package pl.myapp.webtest.config.security;

import org.jboss.seam.faces.event.PhaseIdType;
import org.jboss.seam.faces.rewrite.FacesRedirect;
import org.jboss.seam.faces.rewrite.UrlMapping;
import org.jboss.seam.faces.security.AccessDeniedView;
import org.jboss.seam.faces.security.LoginView;
import org.jboss.seam.faces.security.RestrictAtPhase;
import org.jboss.seam.faces.view.config.ViewConfig;
import org.jboss.seam.faces.view.config.ViewPattern;
import pl.myapp.webtest.config.security.qualifier.Admin;

/**
 * Created by IntelliJ IDEA.
 * User: kaafaar
 * Date: 19.06.11
 * Time: 02:10
 * To change this template use File | Settings | File Templates.
 */
@ViewConfig
public interface MyConfig {

  static enum Pages1 {

      @FacesRedirect
      @ViewPattern("/pages/onlyadmin.xhtml")
      @LoginView("/login.xhtml")
      @AccessDeniedView("/noPermission.xhtml")
      @Admin
      ADMIN,
  }
}
